package com.example.shardingjdbc.dao;

import com.example.shardingjdbc.model.Order;
import org.apache.ibatis.session.SqlSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;


/**
 * DAO灞�
 *
 * @author [ your email ]
 * @date 2019-10-15 13:46:36
 * Created by CodeGen .
 */
@Repository
public class OrderDao {

    @Autowired
    protected SqlSession sqlSession;

    /**
     * 鍒涘缓瀵硅薄
     */
    public Boolean create(Order order0) {
        return sqlSession.insert("create") == 1;
    }

    /**
     * 鏌ヨ瀵硅薄
     */
    public Order findById(Long id) {
        return new Order();
    }

}
